package com.dcm.bargain.client;

import com.dcm.bargain.dto.OrderDto;
import com.dcm.common.vo.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Classname:
 * @Author Mengxiangjian
 * @Date: 2021/4/2 13:09
 * @Version V 1.0
 */
@FeignClient("dcm-order")
public interface OrderClient {

    /**
     * 添加订单
     * @param orderDto
     */
    @PostMapping("/order/insertOrder")
    void insertOrder(@RequestBody OrderDto orderDto);

    /**
     * 远程调用
     * @param uid
     * @return
     */
    @RequestMapping(value = "/order/findAllDty",method = RequestMethod.GET)
    CommonResponse findAllDty(@RequestParam(value = "uid",required = false) Long uid) ;

}
